﻿using System;
using System.ComponentModel;
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using LeadThing.AbpZeroTemplate.GridPersons;

namespace LeadThing.AbpZeroTemplate.GridPersons.Dtos
{
    /// <summary>
    /// 网格基本信息列表Dto
    /// </summary>
    [AutoMapFrom(typeof(GridPerson))]
    public class GridPersonListDto : EntityDto<long>
    {
        /// <summary>
        /// 人员姓名
        /// </summary>
        [DisplayName("人员姓名")]
        public string PersonName { get; set; }
        /// <summary>
        /// 人员手机号
        /// </summary>
        [DisplayName("人员手机号")]
        public string PersonPhone { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        [DisplayName("身份证号")]
        public string IDCard { get; set; }
        /// <summary>
        /// 网格员姓名
        /// </summary>
        [DisplayName("网格员姓名")]
        public string GridName { get; set; }
        /// <summary>
        /// 网格员手机号
        /// </summary>
        [DisplayName("网格员手机号")]
        public string GridPhone { get; set; }
        /// <summary>
        /// 协管员姓名
        /// </summary>
        [DisplayName("协管员姓名")]
        public string AssistName { get; set; }
        /// <summary>
        /// 协管员手机号
        /// </summary>
        [DisplayName("协管员手机号")]
        public string AssistPhone { get; set; }
        /// <summary>
        /// 人员类型ID
        /// </summary>
        [DisplayName("人员类型ID")]
        public int PersonTypeID { get; set; }
        /// <summary>
        /// 是否涉军类
        /// </summary>
        [DisplayName("是否涉军类")]
        public bool IsArmy { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [DisplayName("创建时间")]
        public DateTime CreationTime { get; set; }
        /// <summary>
        /// 镇
        /// </summary>
        [DisplayName("镇")]
        public int TownID { get; set; }
        /// <summary>
        /// 区
        /// </summary>
        [DisplayName("区")]
        public int AreaID { get; set; }
        /// <summary>
        /// 村庄
        /// </summary>
        [DisplayName("村庄")]
        public int VillageID { get; set; }

        #region 扩展字段

        /// <summary>
        /// 镇名称
        /// </summary>
        [DisplayName("镇")]
        public string TownTitle { get; set; }

        /// <summary>
        /// 区名称
        /// </summary>
        [DisplayName("区")]
        public string AreaTitle { get; set; }

        /// <summary>
        /// 村名称
        /// </summary>
        [DisplayName("村庄")]
        public string VillageTitle { get; set; }

        /// <summary>
        /// 人员类型名称
        /// </summary>
        [DisplayName("人员类型ID")]
        public string PersonTypeTitle { get; set; }


        #endregion

    }
}
